import axios from 'axios';
const DEV_ENV = process.env.NODE_ENV == 'development' ? false : true;
let flag = DEV_ENV? '':'/api'
// http request 拦截器
axios.interceptors.request.use(
    config => {
        config.url = flag + config.url
        return config
    },
    err => {
      return Promise.reject(err)
})
export default axios;

